import { createApp } from 'vue';
import App from 'src/App.vue';
import ElementPlus from 'element-plus';
import router from 'router';
import { createPinia } from 'pinia';
import { registerStore } from 'store';
import ScaleBox from 'components/common/ScaleBox.vue';
import piniaPluginPersist from 'pinia-plugin-persist';
import 'element-plus/theme-chalk/index.css';
import 'assets/style/reset.css';

const app = createApp(App);

app.config.warnHandler = () => null;

app
  .use(router)
  .use(createPinia().use(piniaPluginPersist))
  .use(ElementPlus)
  .component('scale-box', ScaleBox)
  .mount('#app');

registerStore();
